package com.synjones.cpucard;

import com.synjones.multireaderlib.MultiReader;

public class ZkCpuReader {
    MultiReader reader;
    CpuCardCmd cpuCmd=new CpuCardCmd();
    public ZkCpuReader(MultiReader reader){
        this.reader=reader;
    }
    static final byte[] CMD={(byte) 0xAA,0x00,0x03,0x25,0x26,0x00,0x00, (byte) 0xBB};
    public byte[] MF_GET_SNR(){
        byte ret[]=reader.getIop().rawSendRecv(CMD);
        if(ret==null) return null;
        if(ret.length>=11){
            byte []r=new byte[4];
            System.arraycopy(ret,5,r,0,4);
            return r;
        }
        return null;
    }
}
